package ooExercise.day04;

public abstract class Animal {
    String name;
    int age;
    String color;
    String food;
    public Animal(String name, int age, String color, String food) {
        this.name = name;
        this.age = age;
        this.color = color;
        this.food=food;
    }
    void drink(){
        System.out.println(color+"颜色的,今年"+age+",名字叫"+name+"正在喝水...");
    }
    abstract void eat();
}
